import {BasicLayout, RouteView} from '@/layouts'
import {Router} from './types'
import PageView from '@/layouts/PageView.vue'

export const example: Router = {
    path: '/',
    name: 'index',
    component: BasicLayout,
    meta: {title: '打印组件管理'},
    redirect: '/templateManager',

    children: [
        {
            path: '/exception',
            name: 'exception',
            component: RouteView,
            redirect: '/exception/403',
            hidden: true,
            meta: {title: 'menu.exception.title', icon: 'bx-analyse'},
            children: [
                {
                    path: '/exception/403',
                    name: '403',
                    component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/403.vue'),
                    meta: {title: 'menu.exception.not-permission'}
                },
                {
                    path: '/exception/404',
                    name: '404',
                    component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404.vue'),
                    meta: {title: 'menu.exception.not-find'}
                },
                {
                    path: '/exception/500',
                    name: '500',
                    component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/500.vue'),
                    meta: {title: 'menu.exception.server-error'}
                }
            ]
        },


        // 模板管理
        {
            path: 'templateManager',
            component: RouteView,
            meta: {title: '模板管理', icon: 'bx-analyse', keepAlive: true},
            hideChildrenInMenu: true,
            children: [{
                path: '',
                component: () => import('@/views/templateManager/index.vue'),
                name: 'templateManager',
                meta: {title: '模板管理', icon: 'bx-analyse', keepAlive: true},
                hideChildrenInMenu: true
            },
              /*  {
                    path: 'create',
                    component: () => import('@/views/templateManager/components/Create.vue'),
                    name: 'ruleManagerCreate',
                    meta: {title: '模板创建', icon: 'bx-analyse', keepAlive: true, hidden: true},
                    hideChildrenInMenu: true,
                    children: []
                },*/

            ]
        }, {
            path: 'printRecord',
            component: RouteView,
            meta: {title: '打印记录', icon: 'bx-analyse', keepAlive: true},
            hideChildrenInMenu: true,
            children: [{
                path: '',
                component: () => import('@/views/printRecord/index.vue'),
                name: 'printRecord',
                meta: {title: '打印记录', icon: 'bx-analyse', keepAlive: true},
                hideChildrenInMenu: true
            },

            ]
        },

    ]
}
